<template>
	<view class="productSales">
		<view class="item" v-for="(item,index) in list" :key="index">
			<view class="i-time">{{item.atime}}</view>
			<view class="items">
				<image :src="item.gdimg_0?item.gdimg_0:img_buf" mode=""></image>
				<view class="items-data">
					<view class="s-title">{{item.customer_name}}</view>
					<view class="s-i-t">{{item.no}}</view>
					<view class="s-num">
						<text class="">共计：<span class="font_red mr5">{{item.number || '--'}}</span>件</text>
						<text class="s-n-p">总计：<span class="font_green">￥{{item.amount_gd || '0.00'}}</span></text> 
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
import staticConst from "../../js/const/StaticConst.js";

	export default {
		props:["list"],
		data() {
			return {
            img_buf: staticConst.GOOD_IMG,
				
			};
		},
		created() {
			
		},
		methods:{
			
		}
	}
</script>

<style lang="scss">
	.productSales
	{
		.item
		{
			.i-time
			{
				color: #999;
				font-size: 15px;
				background-color: #EEE;
				padding-left: 5px;
			}
			.items
			{
				display: flex;
				
				margin: 10px 0;
				image
				{
					width: 80px;
					height: 80px;
					border-radius: 5px;
				}
				.items-data
				{
					flex: 1;
					padding-left: 15px;
					font-size: 13px;
					color: #333;
					.s-title
					{
						font-size: 16px;
					}
					.s-i-t
					{
						color: #999;
						.s-i-p
						{
							padding: 0 10px;
						}
					}
					.s-num
					{
						.s-n-p
						{
							padding-left: 10px;
						}
					}
				}
			}
		}
	}
</style>
